// CPPRemoteTpiNetClient.cpp
//
// This file implements the entry point for the managed
// C++ application. The user interface for the TPI.NET
// client implemented by this project is contained
// in the files Form1.h and Form1.cpp.
/////////////////////////////////////////////////////////////

#include "StdAfx.h"

#using <system.windows.forms.dll>
#using <system.drawing.dll>
#using <system.dll>
#using "TlaNetInterfaces.dll"

#include "form1.h"
#include <tchar.h>

using namespace System;
using namespace CPPRemoteClientSample;
using namespace System::Windows::Forms;

// This is the entry point for this application
int _tmain(void)
{
	try {
        Application::Run(new Form1);
    }
    catch (Exception* e) {
        MessageBox::Show(e->ToString());
        MessageBox::Show("The remote TPI.NET client experienced an error and must shut down.");
    }
    return 0;
}